#ifndef LOGINPANEL_H
#define LOGINPANEL_H

#include <wx/event.h>
#include <wx/combobox.h>
#include <wx/animate.h>

#include "tux.h"

class LoginPanel : public wxPanel
{
friend class MainFrame;
friend class MessengerPanel;

private:
	MessengerPanel* messengerPanel;

	wxStaticText* userEmailLabel;
	wxStaticText* userPasswordLabel;

	wxStaticText* connectLabel;

    wxTextCtrl* emailTextCtrl;
    wxTextCtrl* passwordTextCtrl;
    wxComboBox* statusComboBox;

    wxButton* okButton;

public:
    LoginPanel(MessengerPanel* mp);
    ~LoginPanel();

	void UpdateUI();

	void UpdateUIText();

	void UpdateStatusText();
	void UpdateButtonText();

protected:
    void OnOk(wxCommandEvent& event);
    void OnSignIn();
    void OnCancel();
    void OnKeyDown(wxKeyEvent& event);

    void OnStatusChanged(wxCommandEvent& event);

DECLARE_EVENT_TABLE()
};

#endif



